package com.lgl.maker.cli.command;

import cn.hutool.core.util.ReflectUtil;
import com.lgl.maker.model.MainTemplateModel;

import picocli.CommandLine.Command;

import java.lang.reflect.Field;

/**
 * @author 良哥
 * @verison FileGenerator.java.ftl.0
 */
@Command(name = "config", description = "展示参数信息", mixinStandardHelpOptions = true)
public class ConfigCommand implements Runnable {
    @Override
    public void run() {
        System.out.println("展示参数信息");
        Field[] fields = ReflectUtil.getFields(MainTemplateModel.class);

        for (Field field : fields) {
            System.out.println("字段名  =   " + field.getName());
            System.out.println("字段类型  =   " + field.getType());


        }
    }


}
